Functoid - WeekPattern2Weeks

WeekPattern2Weeks Functoid

 Some applications make use of a pattern to e.g. determine a schedule for active/non-active weeks. The pattern output exists of 0 (not-active) or 1 (active). The WeekPattern2Weeks translates the values in the array to position (week) number and the value. The Param input will recieve the 1s and 0s of the WeekPattern string. The ValueSep will use a character (e.g. - or =) to separate the Weeknumber with the Param provided (e.g. 1=1, 2=0, 3=0, 4=1, etc) ItemSep will use a character (e.g - or ,) to separate the values that are outputted.
 
 
Inputs with their allowed values:

Example:

See Figure 1

Figure1